#include <iostream>
#include <vector>
#include <string>
#include <stdio.h>
#include <stdlib.h>

#include "Sender.cpp"

using namespace std;
int main(int argc, char const *argv[])
{

	string mes="hello";
	string cipher="AES_MD5_SHA1";
	string message=mes+" "+cipher;
	ofstream fout("./Cipher.txt");
	fout<<cipher;
	fout.close();
	Sender sender("127.0.0.1");
	sender.sendMsg("negotiation");
	if(sender.receiveMsg()=="OK"){
		sender.negotiate(message);
	}
	cout<<sender.receiveMsg()<<endl;
	return 0;
}